function sms1()
{
	if(null == $('#smsPhone') || $('#smsPhone').val().length < 0){
		ewing.alert("提示", "请输入手机号", null);
	}
	
	var requestJson = {
		data: {
			phone: $("#smsPhone").val()
		}
	};
	ajax.jsonpSyncFetch("apiwx/sms1.action", requestJson, "afterSms1");
}

function afterSms1(json){
}

function sendAuthCode(){
	var requestJson = {
		data: {
			phone : $("#smsPhone").html()
		}
	};
	ajax.jsonpSyncFetch("apiwx/sms2.action", requestJson, "afterSendAuthCode");
}

function afterSendAuthCode(json){
	//@TODO填写手机号码
	$("#smsPhone").html();
}

function sms2()
{
	var requestJson = {
		data: {
			phone : $("#smsPhone").html(),
			pass: $("#pass").val()
		}
	};
	ajax.jsonpSyncFetch("apiwx/sms3.action", requestJson, "afterSms3");
}

function sms3()
{
	var requestJson = {
		data: {
			phone : $("#smsPhone").html(),
			code : $("#authCode").val(),
			pass: $("#pass").val(),
			confirmPass : $("#confirmPass").val()
		}
	};
	ajax.jsonpSyncFetch("apiwx/sms3.action", requestJson, "afterSms3");
}

function afterSms3(json){
	if(null != json && null != json.result && json.success == true){
		document.body.removeChild(document.getElementById("modal"));
	}else{
		ewing.alert("提示", "登陆异常，请重新登陆", null);
	}
	
}
